package com.neuedu.carsystem.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.neuedu.carsystem.dao.AdminDao;
import com.neuedu.carsystem.model.Admin;
import com.neuedu.carsystem.service.AdminService;
//配置一个spring的服务类，把业务实现类交给spring进行管理，由spring完成依赖注入
@Service
public class AdminServiceImpl implements AdminService {
	// 织入 -依赖注入
		@Autowired
		public AdminDao adminDao;
	public void setAdminDao(AdminDao adminDao) {
			this.adminDao = adminDao;
		}
	@Override
	public String findName(String id) {
		// TODO Auto-generated method stub
		return adminDao.findName(id);
	}
	@Override
	public Admin findAdminByName(Admin u) {
		// TODO Auto-generated method stub
		return adminDao.findAdminByName(u);
	}

}
